using HMCollada.Core;
using System.Xml;

namespace HMCollada.Core {
    internal struct HMColladaScene {
        internal HMColladaInstanceVisualScene instance_visual_scene;
    }
}

namespace HMCollada {
    internal partial class HMColladaLoader {
        internal static HMColladaScene LoadScene() {
            HMColladaScene newScene = new HMColladaScene();

            if (!colladaReader.IsEmptyElement) colladaReader.Read();
            do {
                if (colladaReader.NodeType != XmlNodeType.EndElement) {
                    switch (colladaReader.Name) {
                        case "instance_visual_scene": newScene.instance_visual_scene = LoadInstanceVisualScene(); break;
                    }
                }

                if (!colladaReader.IsEmptyElement) colladaReader.Read();
            } while (colladaReader.Name != "scene");

            if (colladaReader.IsEmptyElement) colladaReader.Read();
            return newScene;
        }
    }
}